using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Windows.Forms;

namespace ipzip
{
    class Program
    {


        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            try
            {
                using(Zipper zipper = new Zipper(args))
                {

                    Application.Run(new ZipProgressForm(zipper));

                }
            }
            catch(Exception e0)
            {
                MessageBox.Show("An error occured while creating the ZIP folder:\n" +
                    e0.Message,Application.ProductName);
                Environment.Exit(1);
            }
        }
    }
}
